const sdkToken = '__access_token__'
export function getToken() {
	return localStorage.getItem(sdkToken)
}

export function setToken(token) {
	return localStorage.setItewm(sdkToken, token)
}

export function removeToken() {
	return localStorage.removeItem(sdkToken)
}

// token过期时间
export function effectiveTimer() {
	return Number(localStorage.getItem('__token_expires__').substring(1, localStorage.getItem('__token_expires__').length - 1)) > new Date().getTime()
}
